package com.iplay.dahua.chapter2.strategy;

/**
 * 上下文
 * @author dangwu
 * @since 2021/7/21 3:36 下午
 */
public class Context {
    private final Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    public void contextInterface() {
        strategy.algorithmInterface();
    }
}
